package com.spring.shops.dao;

import com.github.pagehelper.Page;
import com.spring.shops.model.entity.TzIndexImg;
import com.spring.shops.model.dto.IndexImgDTO;

import java.util.List;


public interface TzIndexImgMapper {
    int deleteByPrimaryKey(Long imgId);

    int insert(TzIndexImg record);

    int insertSelective(TzIndexImg record);

    TzIndexImg selectByPrimaryKey(Long imgId);

    int updateByPrimaryKeySelective(TzIndexImg record);

    int updateByPrimaryKey(TzIndexImg record);

    /**
     * 动态条件分页查询
     * @param dto
     * @return
     */
    Page<TzIndexImg> page(IndexImgDTO dto);
    /**
     * 批量删除数据
     * @param ids
     * @return
     */
    int deleteByIds(List<Integer> ids);
}